<aside class="g-sidebar-wrapper">
        <div class="g-sidebar">
            <section class="author-card">
                <div class="avatar">
                    <img src="{{ site.avatar | prepend: site.baseurl }}" alt="">
                </div>
                <div class="author-name" rel="author">{{ site.author }}</div>
                <div class="bio">
                    <p>{{ site.bio }}</p>
                </div>
                {% if site.sns.size > 0 %}
                <ul id="sns-links" class="sns-links">
                    {% for s in site.sns %}
                    <li>
                        <a href="{{ s[1] }}" target="_blank">
                            <i class="iconfont icon-{{ s[0] }}"></i>
                        </a>
                    </li>
                    {% endfor %}
                </ul>
                {% endif %}
            </section>

            {% if site.recommend-tags and site.tags.size>0 %}
            <section class="tags-card">
                {% for tag in site.tags %}
                    {% if forloop.index > site.recommend-condition-size %}
                        {% break %}
                    {% endif %}
                    <a href="{{ "/tags#" | append: tag[0] | prepend: site.baseurl }}" class="tag">{{ tag[0]}}</a>
                {% endfor %}
            </section>
            {% endif %}
        </div>

        <div class="new-card">
        <div class="new-title">最新发布文章</div>
            <ul id="new">
            {% for post in site.posts limit:10 %}
              <li class="new-hot">
                <a href="{{ post.url }}" class="new iconfont icon-new">
                  {{ post.title }}
                </a>
              </li>
            {% endfor %}  
            </ul>
    
         </div>


<div class="new-card">
        <div class="new-title">申请友链  <a href="/link" class="iconfont icon-homein "> </a></div>
             <ul>
                {% for i in site.friends %}
              <li class="new-hot">
                <a href="{{ i[1] }}" class="new iconfont icon-youqinglianjie"> {{ i[0] }}</a>
              </li>
                  {% endfor %}
            </ul>
</div>


        {% if site.search %}
        <div class="search-card">
            <input id="search_input" type="text" placeholder="搜索...">
            <i class="iconfont icon-search"></i>
            <div class="search_result"></div>
        </div>
        {% endif %}

    </aside>